Skip to content

Conversation

@dlech
Copy link
Member

@dlech dlech commented Jul 15, 2025

This bothered me when doing code reviews because it was so awkward, so let's clean it up.

Also fix all of the trailing whitespace issues in the tiam1808 library while we are cleaning things up.

dlech added 2 commits July 14, 2025 21:49
Trim all of the trailing whitespace from all files in the in the
`lib/tiam1808` directory. This way, if we want to modify a file in
the future, we don't have to deal with it.
Split SPIPinControl() into SPIPinControlGet() and SPIPinControlSet()
functions. Having to pass a pointer to flags to set a value was awkward
and the read/write flag parameter made it difficult to know if we were
reading or writing. And any function that does two completely different
things based on a boolean flag is a code smell.
@coveralls
Copy link

Coverage Status

coverage: 57.254% (-0.01%) from 57.268%
when pulling 7dbd800 on dlech:fix-SPIPinControl
into 8342aae on pybricks:master.

@dlech dlech merged commit 49f716f into pybricks:master Jul 15, 2025
17 checks passed
@dlech dlech deleted the fix-SPIPinControl branch July 15, 2025 03:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants